// 远程获取类型1的书籍列表信息
import axios from "axios";
import {REQUESTURL} from "./config";
export async function getBookList(type){
    let data =  await axios.post(`${REQUESTURL}book/getBook`,{params:{type:type}});
    return data.data;
    // console.log(data.data);
}
//获取书籍详情
export async function getBookInfo(book_id){
   let data =  await axios.post(`${REQUESTURL}book/getBookInfo`,{book_id:book_id});
    return data.data;
}
// getTypeOneBookList();
//获取作者书籍
export async function getAuthorBook(book_id)
{
  let data = await axios.post(`${REQUESTURL}book/getAuthorBook`,{book_id:book_id});
    return data.data;
}
//获取章节列表
export async function getChapterList(book_id)
{
    let data = await axios.post(`${REQUESTURL}book/getChapterList`,{book_id:book_id});
    return data.data;
}

//获取最新更新章节
export async function getNewChapterList(book_id)
{
    let data = await axios.post(`${REQUESTURL}book/getNewChapterList`,{book_id:book_id});
    return data.data;
}
